package com.fjut.kms.service;

import com.fjut.kms.dao.UserDepartmentDao;
import com.fjut.kms.dao.UserDepartmentJDBCImpl;

/**
 * Created by Empathy on 2017/8/7.
 */
public class UserDepartmentServiceImpl implements UserDepartmentService {
    public boolean isExist(String deptName){
        UserDepartmentDao udDao=new UserDepartmentJDBCImpl();
        return udDao.getDeptNameByDeptName(deptName)==null?false:true;
    }
}
